package mybatis_spring.dao;

import entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int insert(User user);

    User selectById(int id);

    List<User> selectAll();

    int updateById(User user);

    int deleteById(int id);

    int deleteAll();
}
